package com.azt.front.service;

import com.azt.api.pojo.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by shangwq on 2016/9/9.
 */
public interface UserFrontService {


    void recordLoginSessionAndCookie(User user, int loginType, String username, boolean rememberMe, Integer currentRoleId);

    void recordLoginSession(User user, int loginType, Integer currentRoleId);

    void sendIforgotSMS(HttpServletRequest request, HttpServletResponse response, String mobile);

    void sendRegisterSMS(HttpServletRequest request, HttpServletResponse response, String mobile);

    boolean isValidIforgotRequest(HttpServletRequest request, Integer step);

    void logout();
}
